﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ApartmentDetailsModule.ascx.cs" Inherits="blackhouse.StareKino.Web.Modules.ApartmentDetailsModule" %>
<%@ Register Src="~/Modules/CurrencyLiteral.ascx" TagName="CurrencyLiteral" TagPrefix="blackhouse" %>
<a class="opinionSummary" href="<asp:Literal runat="server" ID="ltlLinkToOpinions" />">
    <h5 class="name">
        <asp:Literal runat="server" ID="ltlOpinionText" />
    </h5>
    <h6 class="value">
        <asp:Literal runat="server" ID="ltlOpinion" /></h6>
    <div class="cleaner"></div>
    <p>
        <%=GetGlobalResourceObject("Apartments", "opinionScoreFrom")%>
        <asp:Literal runat="server" ID="ltlOpinionsCount" />
        <%=GetGlobalResourceObject("Apartments", "scoreOpinion")%>
    </p>
</a>
<table>
    <tr>
        <td><asp:Literal runat="server" ID="ltlMaxPeoples" Text="<%$ Resources: Apartments, mPersons %>" /></td>
        <td>
            <asp:Literal runat="server" ID="ltlFloor" />
            </td>
    </tr>
    <tr>
        <td><%=GetGlobalResourceObject("Apartments", "surface").ToFirstUpperString()%>:</span>
        </td>
        <td>
            <asp:Literal runat="server" ID="ltlSurface"></asp:Literal>m<sup>2</sup></td>
    </tr>

    <asp:Repeater runat="server" ID="rptFields" OnItemDataBound="rptFields_ItemDataBound">
        <HeaderTemplate>
            <tr>
        </HeaderTemplate>
        <ItemTemplate>
            <td>
                <asp:Literal ID="ltlTitle" runat="server" />:
                            <asp:Literal ID="ltlValue" runat="server" /></td>
        </ItemTemplate>
        <FooterTemplate>
            </div>
        </FooterTemplate>
    </asp:Repeater>

    <asp:PlaceHolder runat="server" ID="phMoreOne" Visible="false">
        <tr>
            <td><%=GetGlobalResourceObject("Apartments", "apartmentsCount")%></td>
            <td>
                <asp:Literal runat="server" ID="ltlApartmentsCount" /></td>
        </tr>
    </asp:PlaceHolder>

    <asp:PlaceHolder runat="server" ID="phDiscount" Visible="false">
        <tr class="apartment-discount apartment-price ap-reservation-start">
            <td>
                <asp:Literal runat="server" ID="ltlDiscountName" />

            </td>
            <td>
                <asp:Literal runat="server" ID="ltlDiscountValue" />

            </td>
        </tr>
    </asp:PlaceHolder>

    <asp:PlaceHolder runat="server" ID="phOldPrice" Visible="false">
        <tr class="apartment-price apl-oldprice">
            <td><%=GetGlobalResourceObject("Apartments", "prevPrice")%>:</td>
            <td class="value">
                <blackhouse:CurrencyLiteral runat="server" ID="lblPrevPriceAll" Precision="2" DisableChangeCurrency="true" />
            </td>
        </tr>
    </asp:PlaceHolder>


    <asp:PlaceHolder runat="server" ID="phPricePerNight" Visible="true">
        <tr>
            <td>
                <asp:Literal runat="server" ID="lblPriceNoSet" Visible="false" Text="<%$ Resources:Apartments, priceFrom %>" />
                <asp:Literal runat="server" ID="lblPriceSet" Visible="false" Text="<%$ Resources:Apartments, perPrice %>" />:</td>
            <td>
                <blackhouse:CurrencyLiteral runat="server" ID="lblPricePersonNight" Precision="2" DisableChangeCurrency="true" />
                /<%=GetGlobalResourceObject("Apartments", "perNight")%></td>
        </tr>
    </asp:PlaceHolder>


    <asp:PlaceHolder runat="server" ID="phPriceAll" Visible="false">
        <tr class="ap-reservation-end apartment-price">
            <td>
                <asp:Literal runat="server" ID="lblNewPriceAll" Visible="false" Text="<%$ Resources: Apartments, newPrice %>">
                </asp:Literal><asp:Literal runat="server" ID="lblPriceAllTotal" Visible="true" Text="<%$ Resources: Apartments, priceTotal %>"></asp:Literal>:
            </td>
            <td>
                <strong>
                    <blackhouse:CurrencyLiteral runat="server" ID="lblPriceAll" Precision="2" DisableChangeCurrency="true" />
                </strong>

            </td>
        </tr>
    </asp:PlaceHolder>
    <asp:PlaceHolder runat="server" ID="phAllNights" Visible="false">
        <tr>
            <td><%=GetGlobalResourceObject("Apartments", "stayOn")%>:</td>
            <td>
                <asp:Literal runat="server" ID="lblNight" /></td>
        </tr>
    </asp:PlaceHolder>
    <asp:PlaceHolder runat="server" ID="phAllPersons" Visible="false">
        <tr>
            <td><%=GetGlobalResourceObject("Apartments", "stayFor")%>:</td>
            <td>
                <asp:Literal runat="server" ID="lblPersons" /></td>
        </tr>
    </asp:PlaceHolder>
    
    <asp:PlaceHolder runat="server" ID="phNoFreeInfo" Visible="false">
        <tr>
            <td colspan="2" class="noFree">
                <%=GetGlobalResourceObject("Apartments", "noFreeApartments")%>
            </td>
        </tr>
    </asp:PlaceHolder>
</table>
